﻿using System;

using Outcoder;
using Outcoder.UI.Xaml;

using Xamarin.Forms;

namespace CalciumTemplateApp.Views
{
	public partial class MainView : ContentPage
	{
		public MainView() : this(null)
		{
		}

		/// <summary>
		/// This constructor is called via Dependency Injection.
		/// </summary>
		/// <param name="viewModel">The binding context for this view.</param>
		public MainView(MainViewModel viewModel)
		{
			InitializeComponent();

			BindingContext = viewModel;		

			this.BindToInfrastructure();

			Appearing += HandleAppearing;
		}

		void HandleAppearing(object sender, EventArgs e)
		{
		}
	}
}
